<?php
	// print_r($homemessage);
?>
<div id="content">
	<?php  foreach ($homemessage as $key => $value) : ?>
	<div class="message">
		<a href="<?php echo $this->create_url('souhu/details') ;?>?height=500&width=700&mid=" title="查看微博" class="thickbox">
		<div class="messageimage">
			<?php if(!empty($value->user->middle_pic)): ?>
				
				<img src="<?php echo $value->user->middle_pic ?>" alt="" >
			<?php endif; ?>
		</div>
		<div class="headerimg">
			<img src="<?php echo $value->user->profile_image_url ?>" alt="" class = 'messageheader'>
			<span><?php echo $value->user->screen_name ?></span>
		</div>
		<div class = "messagecontentinside"><?php  echo $value->text ?></div>
		</a>
	</div>
	<?php endforeach; ?>

	<nav id="page-nav">
		<a href="<?php $this->create_url('souhu/ajax' ); ?>"></a>
	</nav>
</div>